import { ipcRenderer } from 'electron'
import { contextBridge } from 'electron/renderer'

// import { electronAPI } from '@electron-toolkit/preload'
// contextBridge.exposeInMainWorld('electron', electronAPI)

contextBridge.exposeInMainWorld('SDK', {
  send,
})

function send(type, data) {
  ipcRenderer.send(type, data)
}
